# -*- coding: utf-8 -*-
from couchdbkit.ext.django.schema import *


class Customer(Document):
    email = StringProperty()
    familyName = StringProperty()
    firstName = StringProperty()
    secondName = StringProperty()
    date = DateTimeProperty()
    dateRegistration = DateTimeProperty()
    password = StringProperty()
    lastVisit = DateTimeProperty()
    countVisit = IntegerProperty()
    money = DecimalProperty()
    interesting = StringProperty()
    role = IntegerProperty()
    discount = DecimalProperty()
    addresses = StringListProperty()
    countBuy = IntegerProperty()
    sumBuy = FloatProperty()
    newsletters = BooleanProperty()
    cart = DictProperty()
